package com.ask.repository;

import com.ask.entity.Dish;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

public interface DishRepository extends ElasticsearchRepository<Dish, String> {
    List<Dish> findByName(String name);
    List<Dish> findByPriceBetween(Double min, Double max);
}
